<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui" >

   <p:menubar>

       <p:menuitem value=" #{msgs.nuevo}" icon="blank16"
                   action="#{ajusteInventarioBean.nuevo}"
                   process="@this"
                   update="@form" />

       <p:menuitem value=" #{msgs.guardar}" icon="save16"
                   action="#{ajusteInventarioBean.guardar(false)}"
                   rendered="#{not ajusteInventarioBean.m.persistido}"
                   update="@form" />

       <p:menuitem value=" #{msgs.guardar_nuevo}" icon="saveNew16"
                   action="#{ajusteInventarioBean.guardar(true)}"
                   rendered="#{not ajusteInventarioBean.m.persistido}"
                   update="@form" />

       <p:menuitem value=" #{msgs.imprimir}" icon="print16"
                   action="#{ajusteInventarioBean.imprimir}"
                   rendered="#{ajusteInventarioBean.m.persistido}"
                   ajax="false" />

    </p:menubar>


</ui:composition>